package murcielago.player;

import java.io.IOException;
import java.util.Stack;
import javax.microedition.media.MediaException;

public class Player {

    private LinkedQueue queue;
    private PlayerThread myPlayer;
    private Stack stack;

    public Player() throws IOException, MediaException{
        queue = new LinkedQueue();
        this.stack = new Stack();
        myPlayer = new PlayerThread(queue);
    }
    
    public void cargarQueue(String element){
        queue.offer(element);
    }

    public void cargarStack(String element){
        this.stack.push(element);
    }

    public void play(){
        myPlayer.run();
    }

}
